#ifndef __SUDOKU_H
#define __SUDOKU_H

typedef unsigned int cell;
typedef cell* Grid;

#define gridIndex(g, x, y) *((g)+GRID_SIZE*(y)+(x))
#define subGridIndex(g, sx, sy, x, y) *((g)+GRID_SIZE*(SUB_GRID_SIZE*(sy)+(y))+SUB_GRID_SIZE*(sx)+(x))
#define getSubGridX(x) ((x)/SUB_GRID_SIZE)
#define getSubGridY(y) ((y)/SUB_GRID_SIZE)

#endif
